package bosanova

class Empleado extends Usuario {

    String  titulo
    String  cargo
    String  tCargo
    Integer salario
    
    static hasMany =  [materias:Materia]
    
    static mapping = {
        //datasources(['oracle', 'sqlserver','sybase'])
        version false 
    }

    static constraints = {
        titulo (maxSize: 100, matches: /^[a-zA-Z][ a-zA-Z]*$/)
        cargo (maxSize: 50,matches: /^[a-zA-Z][ a-zA-Z]*$/)
    }
}
